<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="${rc.getContextPath()}/manage/confirmDetails/selectMaterialList" onsubmit="return dwzSearch(this, 'dialog');">
    <div class="pageHeader">
        <div class="searchBar">
            <ul class="searchContent">
                <li><label ><@label key="materialCode.C,colon">物料编号：</@label></label> <input type="text" name="materialCode" value="${condition.materialCode!''}" /></li>
                <li><label ><@label key="materialText.C,colon">物料描述：</@label></label> <input type="text" name="materialText" value="${condition.materialText!''}" /></li>
                <li style="width:90px;">
                    <div class="buttonActive"><div class="buttonContent"><button type="submit"><@label key="query.B">查询</@label></button></div>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</form>

<div class="pageContent" style="width:98%;">

    
    <table class="table border" width="97%" layoutH="118" targetType="dialog" >
        <thead>
            <tr>
                <th width="100" orderField="materialCode"<#if (page.orderField?? && page.orderField == 'materialCode')>class="${page.orderDirection!''}"</#if>><@label key="materialCode.C">物料编号</@label></th>
                <th width="100" orderField="materialText"<#if (page.orderField?? && page.orderField == 'materialText')>class="${page.orderDirection!''}"</#if>><@label key="materialText.C">物料描述</@label></th>
                <th width="80"><@label key="selected_first.C">请选择</@label></th>
            </tr>
        </thead>
        <tbody>
            <#if page??><#if (page.data?size>0)> <#list page.data as material>
            <tr target="material_code" rel="${material.materialCode!''}">
                <td>${material.materialCode!''}</td>
                <td>${material.materialText!''}</td>
                <td>
                    <a class="btnSelect bringBack" value="{materialCode:'${material.materialCode!''}', materialText:'<@json_escape>${material.materialText!''}</@json_escape>'}" title="<@label key="selected_first.C">请选择</@label>">选择</a>
                </td>
            </tr>
            </#list> <#else>
            <tr >
                <td colspan="6"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if> <#else>
            <tr >
                <td colspan="6"  class="noData">======<@label key="noListData.C">列表无数据</@label>=====
                </td>
            </tr>
            </#if>
        </tbody>
    </table>
    <#include "/common/dialogPanelBar.html">
</div>